#include <stdio.h>
#include <time.h>
#include <stdio.h>

time_t  start,end;

int main(int argc,char* argv[]){

start=time(NULL);

int pid;

int i;
for(i=0;i<5;i++){
	switch(pid=fork()){
		case -1:
			printf("error2");
		case 0:
			execve("./server",argv,NULL);
	}
	waitpid(pid, NULL, 0);
}

end=time(NULL);

double millis = 100*difftime(end,start);

printf("tiempo promedio en milisegundos:%G \n",millis);


}
